#ifndef MYQGRAPHICSVIEW_H
#define MYQGRAPHICSVIEW_H

#include <QGraphicsView>
#include <QMouseEvent>
#include <QDebug>

class MyQGraphicsView : public QGraphicsView{
public:
    MyQGraphicsView(QWidget *parent=0);
    int getLastPosX();
    int getLastPosY();

public slots:
    void mouseDoubleClickEvent(QMouseEvent * e);

private:
    int posX;
    int posY;
};

#endif //MYQGRAPHICSVIEW_H
